class Course < ActiveRecord::Base
    has_many :offerings

    def display_name
      return "#{self.department}#{self.course_code} - #{self.full_name}"
    end

    def all_weights
      return [
        self.te_math,
        self.te_sci,
        self.te_engsci,
        self.te_engdes,
        self.cse_a,
        self.cse_b,
        self.cse_c,
        self.cse_d
      ]
    end

end
